package org.example;

import java.io.UnsupportedEncodingException;

public class SocketDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        Socket socket = new Socket();
//        SocketChannel sc = socket.getChannel();
        String ss = "我是中国人";
        System.out.println(ss.getBytes().toString());
        System.out.println(ss.getBytes("GBK").toString());
    }
}
